package com.shzu.jwc.ty.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PeExaminationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PeExaminationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPeExaminationIdIsNull() {
            addCriterion("pe_examination_id is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdIsNotNull() {
            addCriterion("pe_examination_id is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdEqualTo(Integer value) {
            addCriterion("pe_examination_id =", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdNotEqualTo(Integer value) {
            addCriterion("pe_examination_id <>", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdGreaterThan(Integer value) {
            addCriterion("pe_examination_id >", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_id >=", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdLessThan(Integer value) {
            addCriterion("pe_examination_id <", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdLessThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_id <=", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdIn(List<Integer> values) {
            addCriterion("pe_examination_id in", values, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdNotIn(List<Integer> values) {
            addCriterion("pe_examination_id not in", values, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_id between", value1, value2, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_id not between", value1, value2, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameIsNull() {
            addCriterion("pe_examination_name is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameIsNotNull() {
            addCriterion("pe_examination_name is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameEqualTo(String value) {
            addCriterion("pe_examination_name =", value, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameNotEqualTo(String value) {
            addCriterion("pe_examination_name <>", value, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameGreaterThan(String value) {
            addCriterion("pe_examination_name >", value, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameGreaterThanOrEqualTo(String value) {
            addCriterion("pe_examination_name >=", value, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameLessThan(String value) {
            addCriterion("pe_examination_name <", value, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameLessThanOrEqualTo(String value) {
            addCriterion("pe_examination_name <=", value, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameLike(String value) {
            addCriterion("pe_examination_name like", value, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameNotLike(String value) {
            addCriterion("pe_examination_name not like", value, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameIn(List<String> values) {
            addCriterion("pe_examination_name in", values, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameNotIn(List<String> values) {
            addCriterion("pe_examination_name not in", values, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameBetween(String value1, String value2) {
            addCriterion("pe_examination_name between", value1, value2, "peExaminationName");
            return (Criteria) this;
        }

        public Criteria andPeExaminationNameNotBetween(String value1, String value2) {
            addCriterion("pe_examination_name not between", value1, value2, "peExaminationName");
            return (Criteria) this;
        }
        public Criteria andPeExaminationCodeEqualTo(String value) {
            addCriterion("pe_examination_code =", value, "peExaminationCode");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeIsNull() {
            addCriterion("pe_examination_star_time is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeIsNotNull() {
            addCriterion("pe_examination_star_time is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeEqualTo(Date value) {
            addCriterion("pe_examination_star_time =", value, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeNotEqualTo(Date value) {
            addCriterion("pe_examination_star_time <>", value, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeGreaterThan(Date value) {
            addCriterion("pe_examination_star_time >", value, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pe_examination_star_time >=", value, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeLessThan(Date value) {
            addCriterion("pe_examination_star_time <", value, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeLessThanOrEqualTo(Date value) {
            addCriterion("pe_examination_star_time <=", value, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeIn(List<Date> values) {
            addCriterion("pe_examination_star_time in", values, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeNotIn(List<Date> values) {
            addCriterion("pe_examination_star_time not in", values, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeBetween(Date value1, Date value2) {
            addCriterion("pe_examination_star_time between", value1, value2, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStarTimeNotBetween(Date value1, Date value2) {
            addCriterion("pe_examination_star_time not between", value1, value2, "peExaminationStarTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeIsNull() {
            addCriterion("pe_examination_end_time is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeIsNotNull() {
            addCriterion("pe_examination_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeEqualTo(Date value) {
            addCriterion("pe_examination_end_time =", value, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeNotEqualTo(Date value) {
            addCriterion("pe_examination_end_time <>", value, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeGreaterThan(Date value) {
            addCriterion("pe_examination_end_time >", value, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pe_examination_end_time >=", value, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeLessThan(Date value) {
            addCriterion("pe_examination_end_time <", value, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("pe_examination_end_time <=", value, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeIn(List<Date> values) {
            addCriterion("pe_examination_end_time in", values, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeNotIn(List<Date> values) {
            addCriterion("pe_examination_end_time not in", values, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeBetween(Date value1, Date value2) {
            addCriterion("pe_examination_end_time between", value1, value2, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("pe_examination_end_time not between", value1, value2, "peExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceIsNull() {
            addCriterion("pe_examination_place is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceIsNotNull() {
            addCriterion("pe_examination_place is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceEqualTo(String value) {
            addCriterion("pe_examination_place =", value, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceNotEqualTo(String value) {
            addCriterion("pe_examination_place <>", value, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceGreaterThan(String value) {
            addCriterion("pe_examination_place >", value, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceGreaterThanOrEqualTo(String value) {
            addCriterion("pe_examination_place >=", value, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceLessThan(String value) {
            addCriterion("pe_examination_place <", value, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceLessThanOrEqualTo(String value) {
            addCriterion("pe_examination_place <=", value, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceLike(String value) {
            addCriterion("pe_examination_place like", value, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceNotLike(String value) {
            addCriterion("pe_examination_place not like", value, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceIn(List<String> values) {
            addCriterion("pe_examination_place in", values, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceNotIn(List<String> values) {
            addCriterion("pe_examination_place not in", values, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceBetween(String value1, String value2) {
            addCriterion("pe_examination_place between", value1, value2, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationPlaceNotBetween(String value1, String value2) {
            addCriterion("pe_examination_place not between", value1, value2, "peExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitIsNull() {
            addCriterion("pe_examination_upper_limit is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitIsNotNull() {
            addCriterion("pe_examination_upper_limit is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitEqualTo(Integer value) {
            addCriterion("pe_examination_upper_limit =", value, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitNotEqualTo(Integer value) {
            addCriterion("pe_examination_upper_limit <>", value, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitGreaterThan(Integer value) {
            addCriterion("pe_examination_upper_limit >", value, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_upper_limit >=", value, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitLessThan(Integer value) {
            addCriterion("pe_examination_upper_limit <", value, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitLessThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_upper_limit <=", value, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitIn(List<Integer> values) {
            addCriterion("pe_examination_upper_limit in", values, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitNotIn(List<Integer> values) {
            addCriterion("pe_examination_upper_limit not in", values, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_upper_limit between", value1, value2, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationUpperLimitNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_upper_limit not between", value1, value2, "peExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitIsNull() {
            addCriterion("pe_examination_lower_limit is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitIsNotNull() {
            addCriterion("pe_examination_lower_limit is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitEqualTo(Integer value) {
            addCriterion("pe_examination_lower_limit =", value, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitNotEqualTo(Integer value) {
            addCriterion("pe_examination_lower_limit <>", value, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitGreaterThan(Integer value) {
            addCriterion("pe_examination_lower_limit >", value, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_lower_limit >=", value, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitLessThan(Integer value) {
            addCriterion("pe_examination_lower_limit <", value, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitLessThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_lower_limit <=", value, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitIn(List<Integer> values) {
            addCriterion("pe_examination_lower_limit in", values, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitNotIn(List<Integer> values) {
            addCriterion("pe_examination_lower_limit not in", values, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_lower_limit between", value1, value2, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationLowerLimitNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_lower_limit not between", value1, value2, "peExaminationLowerLimit");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskIsNull() {
            addCriterion("pe_examination_ask is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskIsNotNull() {
            addCriterion("pe_examination_ask is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskEqualTo(String value) {
            addCriterion("pe_examination_ask =", value, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskNotEqualTo(String value) {
            addCriterion("pe_examination_ask <>", value, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskGreaterThan(String value) {
            addCriterion("pe_examination_ask >", value, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskGreaterThanOrEqualTo(String value) {
            addCriterion("pe_examination_ask >=", value, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskLessThan(String value) {
            addCriterion("pe_examination_ask <", value, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskLessThanOrEqualTo(String value) {
            addCriterion("pe_examination_ask <=", value, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskLike(String value) {
            addCriterion("pe_examination_ask like", value, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskNotLike(String value) {
            addCriterion("pe_examination_ask not like", value, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskIn(List<String> values) {
            addCriterion("pe_examination_ask in", values, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskNotIn(List<String> values) {
            addCriterion("pe_examination_ask not in", values, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskBetween(String value1, String value2) {
            addCriterion("pe_examination_ask between", value1, value2, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAskNotBetween(String value1, String value2) {
            addCriterion("pe_examination_ask not between", value1, value2, "peExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateIsNull() {
            addCriterion("pe_examination_state is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateIsNotNull() {
            addCriterion("pe_examination_state is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateEqualTo(Integer value) {
            addCriterion("pe_examination_state =", value, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateNotEqualTo(Integer value) {
            addCriterion("pe_examination_state <>", value, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateGreaterThan(Integer value) {
            addCriterion("pe_examination_state >", value, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_state >=", value, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateLessThan(Integer value) {
            addCriterion("pe_examination_state <", value, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateLessThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_state <=", value, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateIn(List<Integer> values) {
            addCriterion("pe_examination_state in", values, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateNotIn(List<Integer> values) {
            addCriterion("pe_examination_state not in", values, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_state between", value1, value2, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationStateNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_state not between", value1, value2, "peExaminationState");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdIsNull() {
            addCriterion("pe_examination_class_id is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdIsNotNull() {
            addCriterion("pe_examination_class_id is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdEqualTo(Integer value) {
            addCriterion("pe_examination_class_id =", value, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdNotEqualTo(Integer value) {
            addCriterion("pe_examination_class_id <>", value, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdGreaterThan(Integer value) {
            addCriterion("pe_examination_class_id >", value, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_class_id >=", value, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdLessThan(Integer value) {
            addCriterion("pe_examination_class_id <", value, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdLessThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_class_id <=", value, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdIn(List<Integer> values) {
            addCriterion("pe_examination_class_id in", values, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdNotIn(List<Integer> values) {
            addCriterion("pe_examination_class_id not in", values, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_class_id between", value1, value2, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationClassIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_class_id not between", value1, value2, "peExaminationClassId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeIsNull() {
            addCriterion("pe_examination_add_time is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeIsNotNull() {
            addCriterion("pe_examination_add_time is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeEqualTo(Date value) {
            addCriterion("pe_examination_add_time =", value, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeNotEqualTo(Date value) {
            addCriterion("pe_examination_add_time <>", value, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeGreaterThan(Date value) {
            addCriterion("pe_examination_add_time >", value, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pe_examination_add_time >=", value, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeLessThan(Date value) {
            addCriterion("pe_examination_add_time <", value, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("pe_examination_add_time <=", value, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeIn(List<Date> values) {
            addCriterion("pe_examination_add_time in", values, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeNotIn(List<Date> values) {
            addCriterion("pe_examination_add_time not in", values, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeBetween(Date value1, Date value2) {
            addCriterion("pe_examination_add_time between", value1, value2, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andPeExaminationAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("pe_examination_add_time not between", value1, value2, "peExaminationAddTime");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdIsNull() {
            addCriterion("pe_examination.system_year_id is null");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdIsNotNull() {
            addCriterion("pe_examination.system_year_id is not null");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdEqualTo(Integer value) {
            addCriterion("pe_examination.system_year_id =", value, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdNotEqualTo(Integer value) {
            addCriterion("pe_examination.system_year_id <>", value, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdGreaterThan(Integer value) {
            addCriterion("pe_examination.system_year_id >", value, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_examination.system_year_id >=", value, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdLessThan(Integer value) {
            addCriterion("pe_examination.system_year_id <", value, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdLessThanOrEqualTo(Integer value) {
            addCriterion("pe_examination.system_year_id <=", value, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdIn(List<Integer> values) {
            addCriterion("pe_examination.system_year_id in", values, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdNotIn(List<Integer> values) {
            addCriterion("pe_examination.system_year_id not in", values, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination.system_year_id between", value1, value2, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andSystemYearIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination.system_year_id not between", value1, value2, "systemYearId");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeIsNull() {
            addCriterion("order_start_time is null");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeIsNotNull() {
            addCriterion("order_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeEqualTo(Date value) {
            addCriterion("order_start_time =", value, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeNotEqualTo(Date value) {
            addCriterion("order_start_time <>", value, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeGreaterThan(Date value) {
            addCriterion("order_start_time >", value, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("order_start_time >=", value, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeLessThan(Date value) {
            addCriterion("order_start_time <", value, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("order_start_time <=", value, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeIn(List<Date> values) {
            addCriterion("order_start_time in", values, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeNotIn(List<Date> values) {
            addCriterion("order_start_time not in", values, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeBetween(Date value1, Date value2) {
            addCriterion("order_start_time between", value1, value2, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("order_start_time not between", value1, value2, "orderStartTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeIsNull() {
            addCriterion("order_end_time is null");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeIsNotNull() {
            addCriterion("order_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeEqualTo(Date value) {
            addCriterion("order_end_time =", value, "orderEndTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeNotEqualTo(Date value) {
            addCriterion("order_end_time <>", value, "orderEndTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeGreaterThan(Date value) {
            addCriterion("order_end_time >", value, "orderEndTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("order_end_time >=", value, "orderEndTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeLessThan(Date value) {
            addCriterion("order_end_time <", value, "orderEndTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("order_end_time <=", value, "orderEndTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeIn(List<Date> values) {
            addCriterion("order_end_time in", values, "orderEndTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeNotIn(List<Date> values) {
            addCriterion("order_end_time not in", values, "orderEndTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeBetween(Date value1, Date value2) {
            addCriterion("order_end_time between", value1, value2, "orderEndTime");
            return (Criteria) this;
        }

        public Criteria andOrderEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("order_end_time not between", value1, value2, "orderEndTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}